package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by handsome-Bob on 2017/9/15.
 * <p>
 * 上传详情的bean
 */
public class UploadDetailsBean implements Parcelable {

    private String applyMoney;

    private String insuranceId;

    private String userName;

    private String paperTime;

    private String reason;

    private List<String> paperImgs1;

    private List<String> paperImgs2;

    private List<String> paperImgs3;

    public UploadDetailsBean() {
    }

    public UploadDetailsBean(String applyMoney, String insuranceId, String userName, String paperTime, String reason, List<String> paperImgs1, List<String> paperImgs2, List<String> paperImgs3) {
        this.applyMoney = applyMoney;
        this.insuranceId = insuranceId;
        this.userName = userName;
        this.paperTime = paperTime;
        this.reason = reason;
        this.paperImgs1 = paperImgs1;
        this.paperImgs2 = paperImgs2;
        this.paperImgs3 = paperImgs3;
    }

    public String getApplyMoney() {
        return applyMoney;
    }

    public void setApplyMoney(String applyMoney) {
        this.applyMoney = applyMoney;
    }

    public String getInsuranceId() {
        return insuranceId;
    }

    public void setInsuranceId(String insuranceId) {
        this.insuranceId = insuranceId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPaperTime() {
        return paperTime;
    }

    public void setPaperTime(String paperTime) {
        this.paperTime = paperTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public List<String> getPaperImgs1() {
        return paperImgs1;
    }

    public void setPaperImgs1(List<String> paperImgs1) {
        this.paperImgs1 = paperImgs1;
    }

    public List<String> getPaperImgs2() {
        return paperImgs2;
    }

    public void setPaperImgs2(List<String> paperImgs2) {
        this.paperImgs2 = paperImgs2;
    }

    public List<String> getPaperImgs3() {
        return paperImgs3;
    }

    public void setPaperImgs3(List<String> paperImgs3) {
        this.paperImgs3 = paperImgs3;
    }

    @Override
    public String toString() {
        return "UploadDetailsBean{" +
                "applyMoney='" + applyMoney + '\'' +
                ", insuranceId='" + insuranceId + '\'' +
                ", userName='" + userName + '\'' +
                ", paperTime='" + paperTime + '\'' +
                ", reason='" + reason + '\'' +
                ", paperImgs1=" + paperImgs1 +
                ", paperImgs2=" + paperImgs2 +
                ", paperImgs3=" + paperImgs3 +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.applyMoney);
        dest.writeString(this.insuranceId);
        dest.writeString(this.userName);
        dest.writeString(this.paperTime);
        dest.writeString(this.reason);
        dest.writeStringList(this.paperImgs1);
        dest.writeStringList(this.paperImgs2);
        dest.writeStringList(this.paperImgs3);
    }

    protected UploadDetailsBean(Parcel in) {
        this.applyMoney = in.readString();
        this.insuranceId = in.readString();
        this.userName = in.readString();
        this.paperTime = in.readString();
        this.reason = in.readString();
        this.paperImgs1 = in.createStringArrayList();
        this.paperImgs2 = in.createStringArrayList();
        this.paperImgs3 = in.createStringArrayList();
    }

    public static final Creator<UploadDetailsBean> CREATOR = new Creator<UploadDetailsBean>() {
        @Override
        public UploadDetailsBean createFromParcel(Parcel source) {
            return new UploadDetailsBean(source);
        }

        @Override
        public UploadDetailsBean[] newArray(int size) {
            return new UploadDetailsBean[size];
        }
    };
}
